package com.kayt.cyberBar.log.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.log.business.entity.po.SLogBusiness;
import com.kayt.cyberBar.log.business.entity.vo.LogBusinessVO;
import com.kayt.cyberBar.log.business.entity.vo.LogOperationCompanyVO;
import com.kayt.cyberBar.log.business.entity.vo.LogOperationCyberVO;
import com.kayt.cyberBar.log.business.entity.vo.LogQueryVO;
import com.kayt.cyberBar.log.business.server.ILogBusinessServer;
import com.kayt.cyberBar.log.business.server.ILogOperationCompanyServer;
import com.kayt.cyberBar.log.business.server.ILogOperationCyberServer;
import com.kayt.cyberBar.log.business.service.ILogBusinessService;

@Service("iLogBusinessService")
public class LogBusinessServiceImpl implements ILogBusinessService {

	@Autowired
	private ILogBusinessServer iLogBusinessServer;
	@Autowired
	private ILogOperationCyberServer logOperationCyberServer;

	private ILogOperationCompanyServer logOperationCompanyServer;

	@Override
	public ServerResponse<PageData<LogBusinessVO>> getLogList(LogQueryVO query) {
		PageData<SLogBusiness> logData = this.iLogBusinessServer.getLogList(query);
		return this.iLogBusinessServer.assemble_result_list(logData);
	}

	@Override
	public ServerResponse<PageData<LogOperationCyberVO>> getCyberOperationLog(LogQueryVO query) {
		return logOperationCyberServer.assemble_result_list(logOperationCyberServer.getLogList(query));
	}

	@Override
	public ServerResponse<PageData<LogOperationCompanyVO>> getCompanyOperationLog(LogQueryVO query) {
		return logOperationCompanyServer.assemble_result_list(logOperationCompanyServer.getLogList(query));
	}

}
